package com.icoo.order.order.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("下单参数")
public class OrderVo {

    @ApiModelProperty("产品ID")
    @NotNull(message = "产品ID不能为空！")
    private Integer productId;

    @ApiModelProperty("产品数量")
    @NotNull(message = "产品数量不能为空！")
    private Integer productNum;
}
